package cn.blog.controller.front;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.blog.controller.BaseServlet;
import cn.blog.entity.origin.Commet;
import cn.blog.service.front.ComService;

@WebServlet("/front/comment")
public class Comment extends BaseServlet {
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

		ComService cs = new ComService();
		List<Commet> colst = cs.getComAll();
		req.setAttribute("colst", colst);
		forward("front/comment");
	}
}
